package com.qisu.converters;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

/**
 * 
 * @author alsan
 *
 */
public class BytesToFloatConverter {
	public byte[] convert(Float val) {
		return ByteBuffer.allocate(4).putFloat(val).array();
	}

	public byte[] seConvert(Float val) {
		return ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putFloat(val).array();
	}
}
